<?php


namespace app\model;


use think\Model;

class Demo extends Model
{
    //protected $table = 'mall_demo';
    public function getStatusTextAttr($value, $data){
        $status = [
            0 => '待审核',
            1 => '正常',
            99 => '删除'
        ];
        return $status[$data['status']];
    }
}